/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package evocarcassonne.core.game;

import evocarcassonne.core.elements.Pawn;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author pnaubourg
 */
public class Player {

    int pawnsNumber;
    List<Pawn> vacantPawns = new ArrayList<Pawn>();
    List<Pawn> availablePawns = new ArrayList<Pawn>();

    public Player(String name) {

        pawnsNumber = 10;

    }

    public void createPawns(int pawnsNumber) {

        this.pawnsNumber = pawnsNumber;

    }

    public boolean pawns() {

        if (pawnsNumber != 0) {
            return true;
        } else {
            return false;
        }

    }

    public Pawn getPawn() {
        pawnsNumber--;
        return new Pawn(this);
        
    }
}
